#include"stdio.h"
int main()
{
	/*int arr[] = {60,70,80,50,40};
	int everage = 0;
	int precent = 0;
	int sum = 0;
	int a = 0;
	int i = 0;
	
	for(i=0;i<5;i++)
	{
		sum = sum+arr[i];
		if(arr[i]>=60)
		{
			a++;
		}
	}
	
	everage = sum/5;
	precent = a*1.0*100/5;
	printf("%d\n",everage);
	printf("%d%\n",precent);*/
	//printf("3/5");
/*	int arr[6] = {0};
	int i = 0;
	int s =0;
	for(i=0;i<6;i++)
	{
		scanf("%d",&arr[i]);
	}
	int max = arr[0];
	int min = arr[0];
	for(s=1;s<=5;s++)
	{
	   if(max<arr[s])	
		{
			max = arr[s];
		}
	   if(min>arr[s])
		{
			min = arr[s];
		}
	}
	printf("%d,%d",min,max);*/
	
	int arr[6] = {0};
	int b = 0;
	int i = 0;
	int z = 0;
	int a = 0;
	
		for(b=0;b<6;b++)
	    {
		scanf("%d",&arr[b]);
	    }
	for(i = 0;i<6;i++)
	{
		
		for(a=0;a<5;a++)
		{
			if(arr[a]>arr[a+1])
			{
				
			int t = 0;
			t = arr[a];
			arr[a] = arr[a+1];
			arr[a+1] = t;
			}
			
		}
	}
	
	for(z=0;z<6;z++)
	{
		printf("%d",arr[z]);
	}
	return 0;
}
